package cn.itsource.constants;
//封装订单状态
public enum OrderStatus {
    ORDER_STATUS_WAIT(0, "等待接单"),
    ORDER_STATUS_ACCEPTED(1, "已接单"),
    ORDER_STATUS_ARRIVE(2, "司机已到达"),
    ORDER_STATUS_START_DRIVING(3, "开始代驾"),
    ORDER_STATUS_COMPLETE_DRIVED(4, "结束代驾"),
    ORDER_STATUS_ENSURE(5, "司机确认费用"),
    ORDER_STATUS_NOT_PAY(6, "未付款"),
    ORDER_STATUS_PAYED(7, "已付款"),
    ORDER_STATUS_FINISH_ORDER(8, "订单已结束"),
    ORDER_STATUS_CUSTOMER_CANCEL_ORDER(9, "顾客撤单"),
    ORDER_STATUS_DRIVER_CANCEL_ORDER(10, "司机撤单"),
    ORDER_STATUS_ACCIDENT_CLOSE(11, "事故关闭"),
    ORDER_STATUS_OTHER(12, "其他");
    //错误码
    private Integer code;
    //错误信息
    private String message;

    OrderStatus(int code,String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
